<?php

namespace App\Http\Controllers;

use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use DB;
class UserController extends Controller
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;

    public function index()
    {
    	// dd('hello,this is UserController@index');// dd = var_dump();die;
	// $data = array('name' => 'bobo','sex' => '男' );
	
	$data = DB::table('users')->get();
	// dd($data);
      // return view('view',$data);
      return view('view',['val' => $data]);
    	
    }
}
